<template>
  <div>
    <swiper class="swiper">
      <swiper-item v-for="item in detailBanners" :key="item.id" > 
          <a :href="item">
          <img :src="item" alt="" />
        </a>
      </swiper-item>
    </swiper>
  </div>
</template>

<script>
import { Swiper, SwiperItem } from "../../../components/common/swiper";
export default {
  components: {
    Swiper,
    SwiperItem,
  },
  props: {
    detailBanners: {
      type: Array,
      default() {
        return [];
      },
    },
  },
};
</script>
<style scoped>
.swiper{
    height: 300px;
    width: 100%;
    overflow: hidden;
}
.swiperItem img{
    width: 100%;
    height: 100%;
}
</style>